package com.liy.cloud.base.entity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.apache.ibatis.annotations.Insert;
import org.hibernate.validator.constraints.NotBlank;

import com.das.framework.common.vo.BaseVO;

/**
 * @Author: zhangw
 * @Date: 2018/6/15  13:22
 * @Description: 设备种类实体
 **/
public class BaseEquTypeEntity extends BaseVO<String> {

    private static final long serialVersionUID = 1L;


    /*
    *设备种类ID
    **/
    @NotBlank(message = "{common.validation.notnull}")
    @Size(max = 4, message = "{common.validation.length}")
    private String id;

    /*
     *设备种类名称
     **/
    @NotNull(groups = {Insert.class})
    @Size(max = 40, message = "{common.validation.length}")
    private String name;

    @Size(max = 1, message = "{common.validation.length}")
    private String flag;

    /*
     *设备大类编号
     **/
    @Size(max = 10, message = "{common.validation.length}")
    private String typeCode;

    @Size(max = 2, message = "{common.validation.length}")
    private String status;

    @Size(max = 2000, message = "{common.validation.length}")
    private String remark;

    @Size(max = 255, message = "{common.validation.length}")
    private String defaultMap;

    @Size(max = 1, message = "{common.validation.length}")
    private String ifManage;


    public BaseEquTypeEntity() {
        super();
    }


    public BaseEquTypeEntity(String id) {
        this.id = id;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDefaultMap() {
        return defaultMap;
    }

    public void setDefaultMap(String defaultMap) {
        this.defaultMap = defaultMap;
    }

    public String getIfManage() {
        return ifManage;
    }

    public void setIfManage(String ifManage) {
        this.ifManage = ifManage;
    }
}
